package com.kws.merchant.mapper;

import com.kws.merchant.domain.ItemPlanFile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * 报价-项目进度文件(ItemPlanFile)表数据库访问层
 *
 * @author yxy
 * @since 2024-10-24 14:47:00
 */

public interface ItemPlanFileMapper extends BaseMapper<ItemPlanFile> {

    /**
     * 根据项目进度id和状态查询进度文件
     * @param id
     * @param status
     * @return
     */
    @Select("SELECT *  FROM tb_item_plan_file     WHERE (item_plan_id = ${id} and status=${status})")
    List<ItemPlanFile> listByPlanIdAndStatus(@Param("id") Long id,@Param("status") Integer status);
}
